<?php require ("header.php"); ?>
<?php 	include ("config/conn.php");?>

<style type="text/css">
<!--
.style2 {font-size: 12}
.style7 {
	font-size: large;
	font-weight: bold;
	color: #CCCCCC;
}
.style9 {font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; }
.style10 {color: #FFFFFF}
.style11 {
	color: #CCCCCC;
	font-weight: bold;
	font-size: 18px;
}
-->
</style>
</head>
<body>
<div align="center">
  <br /><br />
  <table width="534" height="170" border="1" bordercolor="#CCCCCC" bgcolor="#CCCCCC">
    <tr bordercolor="#FFFFFF">
      <td bgcolor="#000000"><div align="center">
        <form name="login" action="engine/login_engine.php" method="POST">
		<center><img src="images/login.png" width="92" height="92"/></center>
		<p class="style11">E-LEARNING SYSTEM  LOGIN </p>
		    <?php
  			if ($_GET != NULL){
  			$sid = $_GET['action'];
   			if ($sid==0)
  			{
  				$sidstring="<font size=\"2px\" color=\"red\" style=\"font-style:none;\"></b>Session is not registered or you do not have privillage.  Please login.
							</font>";
 			 }
			 else if ($sid==505)
			 {
			 	$sidstring="<font size=\"2px\" color=\"red\" style=\"font-style:none;\"></b>Username and password incorrect</font>";
			}
			 else 
 			 {
  				$sidstring="";
 			 }
 		 }
		  else 
 		 {
 		 	$sidstring="";
 		 }
 		 echo $sidstring;
 		 ?>
	    
		<table width="308" border="0">
            <tr>
              <td width="102"><span class="style9">Username</span></td>
              <td width="8"><div align="center" class="style10"><span class="style2">:</span></div></td>
              <td width="184"><div align="left" class="style10">
                <input name="username" type="text" id="username" size="30" />
              </div></td>
            </tr>
            <tr>
              <td><span class="style9">Password</span></td>
              <td><div align="center" class="style10"><span class="style2">:</span></div></td>
              <td><div align="left" class="style10">
                <input name="password" type="password" id="password" size="30" />
              </div></td>
            </tr>
            </table>
		  
        <p>
          <input name="login" type="submit" id="login" value="LOGIN" /></form>
        </p>
      </div></td>
    </tr>
	
  </table>
  <p>&nbsp;</p>
</div>
<?php require ("footer.php"); ?>

